package anatex.translate;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import anatex.domain.CustomLocale;
import anatex.domain.Keyword;
import javax.persistence.ManyToOne;
import javax.validation.constraints.Size;

@RooJavaBean
@RooToString
@RooEntity(finders = { "findTranslatedKeywordsByKeywordAndLocale" })
public class TranslatedKeyword {

    @ManyToOne
    private Keyword keyword;

    @ManyToOne
    private CustomLocale locale;

    @Size(max = 255)
    private String userTranslation;

    @Size(max = 255)
    private String googleTranslation;
}
